package no.sachmuld.methodcombination.impl.validate.annotation;

import no.sachmuld.methodcombination.impl.validate.MethodCombinationValidationError;

import java.lang.reflect.Method;

/**
 *
 */
public class MissingMethodCombinationDependency extends MethodCombinationValidationError {
    private Method method;

    public MissingMethodCombinationDependency(Class targetClass, Method method) {
        super(targetClass);
        this.method = method;
    }

    @Override
    public String toString() {
        return "Missing method combination dependency for method " + method.getName() + " in class " + getTargetClass().getName();
    }
}
